package com.ruoyi.cat.service.impl;

import java.util.List;

import com.ruoyi.cat.domain.AdTicketLike;
import com.ruoyi.cat.mapper.AdTicketLikeMapper;
import com.ruoyi.cat.service.IAdTicketLikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 折扣喜欢Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-16
 */
@Service
public class AdTicketLikeServiceImpl implements IAdTicketLikeService
{
    @Autowired
    private AdTicketLikeMapper adTicketLikeMapper;

    /**
     * 查询折扣喜欢
     * 
     * @param id 折扣喜欢主键
     * @return 折扣喜欢
     */
    @Override
    public AdTicketLike selectAdTicketLikeById(Long id)
    {
        return adTicketLikeMapper.selectAdTicketLikeById(id);
    }

    /**
     * 查询折扣喜欢列表
     * 
     * @param adTicketLike 折扣喜欢
     * @return 折扣喜欢
     */
    @Override
    public List<AdTicketLike> selectAdTicketLikeList(AdTicketLike adTicketLike)
    {
        return adTicketLikeMapper.selectAdTicketLikeList(adTicketLike);
    }

    /**
     * 新增折扣喜欢
     * 
     * @param adTicketLike 折扣喜欢
     * @return 结果
     */
    @Override
    public int insertAdTicketLike(AdTicketLike adTicketLike)
    {
        return adTicketLikeMapper.insertAdTicketLike(adTicketLike);
    }

    /**
     * 修改折扣喜欢
     * 
     * @param adTicketLike 折扣喜欢
     * @return 结果
     */
    @Override
    public int updateAdTicketLike(AdTicketLike adTicketLike)
    {
        return adTicketLikeMapper.updateAdTicketLike(adTicketLike);
    }

    /**
     * 批量删除折扣喜欢
     * 
     * @param ids 需要删除的折扣喜欢主键
     * @return 结果
     */
    @Override
    public int deleteAdTicketLikeByIds(Long[] ids)
    {
        return adTicketLikeMapper.deleteAdTicketLikeByIds(ids);
    }

    /**
     * 删除折扣喜欢信息
     * 
     * @param id 折扣喜欢主键
     * @return 结果
     */
    @Override
    public int deleteAdTicketLikeById(Long id)
    {
        return adTicketLikeMapper.deleteAdTicketLikeById(id);
    }
}
